package com.ccp.dev.qbdms.dao;

import com.ccp.dev.core.basic.base.IBaseMapper;
import com.ccp.dev.qbdms.model.WQbdFlightJc;
import com.ccp.dev.qbdms.model.WQbdSoftwareproAnls;
import com.ccp.dev.qbdms.model.vo.WQbdFlightJcGroupVo;
import com.ccp.dev.qbdms.model.vo.WQbdFlightJcLevelSecondVo;
import org.apache.ibatis.annotations.Mapper;
import com.ccp.dev.core.basic.web.query.QueryFilter;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 飞行试验奖惩管理 信息数据库操作类
 *
 * @author 于金
 * @date 2020-05-25 16:46:07
 */
@Mapper
public interface WQbdFlightJcDao extends IBaseMapper<WQbdFlightJc, String> {
	/**
	 * 导出用查询
	 * @param queryFilter  查询参数
	 * @return	 list
	 */
	List<WQbdFlightJc> queryAll(QueryFilter queryFilter);
	/**
	 * 导出用查询
	 * @param queryFilter  查询参数
	 * @return	 list
	 */
	List<WQbdFlightJc> queryAllExportDataGroup(QueryFilter queryFilter);
	/**
	 * 导出用查询
	 * @param queryFilter  查询参数
	 * @return	 list
	 */
	List<WQbdFlightJc> queryAllExportDataSecond(QueryFilter queryFilter);

	List<Map> getAllToSubTableList(QueryFilter queryFilter);

	/**
	 * 获取集团台账列表
	 *
	 * @param queryFilter 参数
	 * @return List<WQbdFlightJcGroupVo>
	 */
	List<WQbdFlightJcGroupVo> queryListForGroup(QueryFilter queryFilter);

	/**
	 * 二级单位台账列表
	 *
	 * @param queryFilter 参数
	 * @return List<WQbdFlightJcLevelSecondVo>
	 */
	List<WQbdFlightJcLevelSecondVo> queryListForSecond(QueryFilter queryFilter);

	int updateStatus(List<WQbdFlightJc> list);

	/**
	 * 流程审批页面查询通过的数据
	 * @param dataId
	 * @return
	 */
	List<WQbdFlightJc> reportList(@Param("dataId") String dataId, @Param("tableName") String tableName);

	WQbdFlightJc getParentAndChilden(String id);
}
